<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Simpla Admin</title>
<include file="Admin:Resources" />

<script>
$(document).ready(function(){
	new buildPicDialog('.toBig',{'width':'600'});
});
</script>



</head>
<body>
	<div id="body-wrapper"> 
		<div id="main-content"> 
			


			<div class="content-box">
				
				<div class="content-box-header">
					
					<h3>添加文章</h3>
					
					<ul id="my_tab">
						<li><a href="#" ></a></li>
								
					</ul>
					<div class="clear"></div>
				</div> 
			
			
			<div class="content-box-content" >
				<form action="__APP__/Category/Category_editok" method="POST" >
				<table>
					<tr>
						<td>所属父级分类:</td>
						<td>
							<select name="parent_id" style="width:176px; height:27px;" >
								<option>---父级分类---</option>
								<?php foreach($cat_list as $row){ 
									$place = str_repeat('&nbsp;&nbsp;&nbsp;',$row['deep']-1);
									$select=$row['category_id']==$res['parent_id']?'selected="true"':'';
								?>
								<option {$select} style="text-indent:<?php echo ($row['deep']-1)*20 ?>px;" value="{$row['category_id']}" >{$place}{$row['cat_name']}</option>
								<?php  } ?>
								
							</select>
						</td>
						<td></td>
					</tr>
					{$form}
					<tr>
						<td>栏目首页模板:</td>
						<td>
							<select name="cate_tpl" class="selectArea" >
								<option value="" >---请选择栏目首页模板---</option>
								<?php foreach($category_main as $cate_row){ ?>
								<option value="{$cate_row}" <?php if($cate_row==$res['cate_tpl']){echo 'selected="true"';} ?> >{$cate_row}</option>
								<?php } ?>
							</select>
						</td>
						<td></td>
					</tr>
					<tr>
						<td>栏目列表模板:</td>
						<td>
							<select name="list_tpl" class="selectArea" >
								<option value="" >---请选择栏目列表模板---</option>
								<?php foreach($category_list as $list_row){ ?>
								<option value="{$list_row}" <?php if($list_row==$res['list_tpl']){echo 'selected="true"';} ?> >{$list_row}</option>
								<?php } ?>
							</select>
						</td>
						<td></td>
					</tr>
					<tr>
						<td>栏目内容模板:</td>
						<td>
							<select name="show_tpl" class="selectArea" >
								<option value="" >---请选择栏目内容模板---</option>
								<?php foreach($category_con as $con_row){ ?>
								<option value="{$con_row}" <?php if($con_row==$res['show_tpl']){echo 'selected="true"';} ?>  >{$con_row}</option>
								<?php } ?>
							</select>
						</td>
						<td></td>
					</tr>
					<tr>
						<td>栏目单页模板:</td>
						<td>
							<select name="single_tpl" class="selectArea" >
								<option value="" >---请选择栏目单页模板---</option>
								<?php foreach($singles as $single_row){ ?>
								<option value="{$single_row}" <?php if($single_row==$res['single_tpl']){echo 'selected="true"';} ?> >{$single_row}</option>
								<?php } ?>
							</select>
						</td>
						<td></td>
					</tr>
					
					<tr>
						<td>操作:</td>
						<td><input type="submit" value="提交" class="button" /></td>
						<td></td>
					</tr>
				</table>
				</form>
			</div>
				
				
			</div>
			
			<div class="clear"></div>
			
			
			
		</div> 

	</div>
	
</body>
</html>
